﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<z.m.db.Product>" %>

<div data-id="<%:Model.ID %>" draggable="true" class="product" ondragstart="productDrag(event);">
	<img draggable="false" src="<%:Url.Content("~/Content/img/p/"+Model.ID+".jpg") %>" onclick="openPopup('#popup1','<%:Url.Action("_Detail", "Product", new {ID=Model.ID})%>');"/>
	<div class="name"><%:Model.Name %></div>
	<input class="quantity" min="1" max="<%:int.MaxValue%>" type="number" value="1" onchange="quantityChange(event);"/>
	<div class="price"><%:Model.Price %></div>
	<div class="buy" onclick="addToCar(this.parentElement);"></div>
	<div class="total"><%:Model.Price %></div>
</div>
